using System;

using Slaks.Descriptions;

namespace Slaks.Filters
{
  /// <summary>
  /// EnglishTermFilter - implements parsing of english letters, saving punctuation marks
  /// </summary>
  [ModuleDescriptionAttribute("English term filter supports saving punctuation marks","Slava Kisilevich and Alex Markov")]
  public class EnglishTermFilterMarkovProject : EnglishTermFilter
  {
    protected static readonly int SpecialCharacterLeftSquareBracket = 0x5b; //[
    protected static readonly int SpecialCharacterRightSquareBracket = 0x5d; //]

    public EnglishTermFilterMarkovProject() {}

    public override bool IsSpecialCharacter(char ch)
    {
      if (ch == SpecialCharacterLeftSquareBracket || ch == SpecialCharacterRightSquareBracket) return true;
      return false;
    }


    public override string ToString()
    {
      return "english filter with saved punctuation";
    }
  }
}
